package com.fenghongzhang.day009.fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;

import com.fenghongzhang.day009.R;


/**
 * A simple {@link Fragment} subclass.
 */
public class RegisterFragment extends Fragment {
    private EditText fgRegisterName;
    private EditText fgRegisterPwd;
    private Button register;
    public RegisterFragment() {
        // Required empty public constructor
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View inflate = inflater.inflate(R.layout.fragment_register, container, false);

        fgRegisterName = (EditText) inflate.findViewById(R.id.fg_register_name);
        fgRegisterPwd = (EditText) inflate.findViewById(R.id.fg_register_pwd);
        register = (Button) inflate.findViewById(R.id.register);

        register.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //发送请求,完事
            }
        });

        return inflate;
    }
}
